package Utiles;

public class PrimeNumbers {
	
	public static boolean isPrimeNumber(int a){
		if(a <= 1){
			return false;
		}
		for (int i = 2; i <= Math.sqrt(a); i++) {
			if(a%i == 0){
				return false;
			}
		}
		return true;
	}
	
	public static boolean isPrimeNumber(long a){
		if(a <= 1){
			return false;
		}
		
		for (long i = 2; i <= Math.sqrt(a); i++) {
			if(a%i == 0){
				return false;
			}
		}
		return true;
	}
}
